package com.twu.biblioteca;

import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * User: dbelsey
 * Date: 31/01/13
 * Time: 15:11
 */
public class ConsoleIO extends IOHandler {

    public ConsoleIO(){
 //       System.setIn(userInputStream);
 //       System.setOut(appOutputStream);
        userInputStream = System.in;
        appOutputStream = System.out;
        inputScanner =  new Scanner(System.in);
    }

    public ConsoleIO(InputStream inStream, PrintStream outStream){
        userInputStream = inStream;
        appOutputStream = outStream;
        System.setIn(userInputStream);
        System.setOut(appOutputStream);
        inputScanner =  new Scanner(System.in);
    }

}
